package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiTmember;
import cn.com.api.entity.ApiU_bonus;
import cn.com.api.entity.ApiU_bonus_detail;
import cn.com.api.service.base.U_bonus_detailServiceBase;
import cn.com.util.PageInfo;

/**
 * 
 */
@Service
public interface ApiU_bonus_detailService extends U_bonus_detailServiceBase {

	// 打开红包
	public ApiU_bonus_detail OpenBonusItem(String bonus_id, ApiTmember tmember, String get_type);

	// 红包转发
	public ApiU_bonus_detail ForwardBonusItem(String bonus_id, ApiTmember tmember, String forwardWord, String get_type);
	
	// 获取转发的红包
	public ApiU_bonus getBonus_ByDetailID(Integer bonus_detail_id);

	// 打开转发的红包
	public ApiU_bonus_detail openBonus_detailByID(String bonus_detail_id, ApiTmember tmember);

	public void inserts(Map map);

	public void insertU_bonus_details(Map _map);
	
	public ApiU_bonus_detail checkAvailableBonus(String bonus_id, String user_id);
	
	//喊红包中奖列表
	public List<ApiU_bonus_detail> getRollBonusListPage(String type);
	
	//红包排行榜
	public List<ApiU_bonus_detail> getBounusRankingList(Map map, String type, PageInfo page);

	//收到的红包 头部
	public String getReceiveNormalBonusListHeader(String user_id);
	
	//收到的红包列表
	public List<ApiU_bonus_detail> getReceiveNormalBonusList(String user_id, PageInfo page);
	
	//发出的红包 头部
	public String getSendNormalBonusListHeader(String user_id);
}
